package com.itheima.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.health.model.pojos.Member;
import com.itheima.health.model.pojos.Order;
import com.itheima.health.model.pojos.OrderSetting;
import com.itheima.health.model.pojos.submitOrderDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

@Mapper
public interface AppointmentMapper{


    OrderSetting orderSeting(LocalDate orderDate);

    Member seleteMember(String telephone);

    Order seleteOrder(@Param("id") Integer id, @Param("orderDTO") submitOrderDTO orderDTO);

    void updateByDate();

    Integer insertMenber(Member member);

    Integer insertOrder(Order build);

    Order selectOrderById(Integer id);

}
